import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询水票信息列表
export function listWaterbill(query) {
  return request({
    url: '/business/waterbill/list',
    method: 'get',
    params: query
  })
}

// 查询水票信息详细
export function getWaterbill(id) {
  return request({
    url: '/business/waterbill/' + parseStrEmpty(id),
    method: 'get'
  })
}

// 新增水票信息
export function addWaterbill(data) {
  return request({
    url: '/business/waterbill',
    method: 'post',
    data: data
  })
}

// 修改水票信息
export function updateWaterbill(data) {
  return request({
    url: '/business/waterbill',
    method: 'put',
    data: data
  })
}

// 删除水票信息
export function delWaterbill(id) {
  return request({
    url: '/business/waterbill/' + id,
    method: 'delete'
  })
}
